package cc.wanforme.st.server.vo.base;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import cc.wanforme.st.server.base.entity.Permission;
import cc.wanforme.st.server.util.MunkBeanUtils;

/**
 * @author wanne
 * @date 2022-03-10
 */
public class PermissionTreeVo implements Serializable{
	private static final long serialVersionUID = 1L;

	private Long id;

    private String code;

    private String description;
    
    private LocalDateTime createTime;
    
    private List<PermissionTreeVo> children;

    public PermissionTreeVo() {}
    
    public PermissionTreeVo(Permission po) {
    	MunkBeanUtils.copyProperties(po, this);
    }

	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public LocalDateTime getCreateTime() {
		return createTime;
	}
	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}
	public List<PermissionTreeVo> getChildren() {
		return children;
	}
	public void setChildren(List<PermissionTreeVo> children) {
		this.children = children;
	}
    
    
    
}
